package org.agamotto.cloud.template.exception;

/**
 *
 * @author
 * @Time 2019/6/2 21:24
 */
public class TemplateException extends RuntimeException {



    protected Integer code;

    public TemplateException(){

    }
    public TemplateException(String message,Integer code){
        super(message);
        this.code = code;
    }

    /*public TemplateException(String message,HttpStatus code){
        super(message);
        this.code = code;
    }*/


    public TemplateException(String message){
        super(message);
        this.code = 500;
    }

    public Integer getCode(){
        return code;
    }

}
